<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue3 你好世界</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <p>{{count}}</p>
        <button @click="add,plus">增加</button>
    </div>

    <script>
        const Counter = {
            data(){
                return{
                    msg:"你好世界",
                    count:0
                }
            },
            methods:{
                add(){
                    console.log(event);
                    console.log('add');
                },
                plus(e){
                    console.log(e);
                    console.log('plus');
                },
            }

        }
        
        const app = Vue.createApp(Counter);
        const vm = app.mount('#app')
    </script>
</body>
</html>